/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "song_rbtsongs")
//@NamedQueries({@NamedQuery(name = "SongRbtsongs.findAll", query = "SELECT s FROM SongRbtsongs s"), @NamedQuery(name = "SongRbtsongs.findByRBTId", query = "SELECT s FROM SongRbtsongs s WHERE s.rBTId = :rBTId"), @NamedQuery(name = "SongRbtsongs.findByRBTCode", query = "SELECT s FROM SongRbtsongs s WHERE s.rBTCode = :rBTCode"), @NamedQuery(name = "SongRbtsongs.findByName", query = "SELECT s FROM SongRbtsongs s WHERE s.name = :name"), @NamedQuery(name = "SongRbtsongs.findByIsrc", query = "SELECT s FROM SongRbtsongs s WHERE s.isrc = :isrc"), @NamedQuery(name = "SongRbtsongs.findByPrice", query = "SELECT s FROM SongRbtsongs s WHERE s.price = :price"), @NamedQuery(name = "SongRbtsongs.findByCurrency", query = "SELECT s FROM SongRbtsongs s WHERE s.currency = :currency"), @NamedQuery(name = "SongRbtsongs.findByDateReceived", query = "SELECT s FROM SongRbtsongs s WHERE s.dateReceived = :dateReceived"), @NamedQuery(name = "SongRbtsongs.findByStatus", query = "SELECT s FROM SongRbtsongs s WHERE s.status = :status")})
public class SongRbtsongs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "RBTId")
    private Integer rBTId;
    @Column(name = "RBTCode")
    private String rBTCode;
    @Column(name = "name")
    private String name;
    @Column(name = "isrc")
    private String isrc;
    @Column(name = "price")
    private Integer price;
    @Column(name = "currency")
    private String currency;
    @Column(name = "dateReceived")
    @Temporal(TemporalType.TIMESTAMP)
    private Date dateReceived;
    @Column(name = "status")
    private String status;

    public SongRbtsongs() {
    }

    public SongRbtsongs(Integer rBTId) {
        this.rBTId = rBTId;
    }

    public Integer getRBTId() {
        return rBTId;
    }

    public void setRBTId(Integer rBTId) {
        this.rBTId = rBTId;
    }

    public String getRBTCode() {
        return rBTCode;
    }

    public void setRBTCode(String rBTCode) {
        this.rBTCode = rBTCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIsrc() {
        return isrc;
    }

    public void setIsrc(String isrc) {
        this.isrc = isrc;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Date getDateReceived() {
        return dateReceived;
    }

    public void setDateReceived(Date dateReceived) {
        this.dateReceived = dateReceived;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (rBTId != null ? rBTId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SongRbtsongs)) {
            return false;
        }
        SongRbtsongs other = (SongRbtsongs) object;
        if ((this.rBTId == null && other.rBTId != null) || (this.rBTId != null && !this.rBTId.equals(other.rBTId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.SongRbtsongs[rBTId=" + rBTId + "]";
    }

}
